-- GENERATED SPELL FOR [Fardel Dabyrie] --


function spell0_4479(pUnit, Event) --@Deadly Poison,n/a--
pUnit:FullCastSpellOnTarget(3583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4479', 2000, 1)
end

function spell1_4479(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_4479', 649, 1)
end

function Sorts_4479(pUnit, Event)
local choix_sorts_4479 = math.random(0, 1)
if choix_sorts_4479 == 0 then
pUnit:RegisterEvent('spell0_4479', 1, 1)
end
if choix_sorts_4479 == 1 then
pUnit:RegisterEvent('spell1_4479', 1, 1)
end
end

function mob4479_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4479', math.random(1500, 3000), 1)
end

function mob4479_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4479_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4479_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4479, 1, 'mob4479_Action')
RegisterUnitEvent(4479, 2, 'mob4479_Leave')
RegisterUnitEvent(4479, 3, 'mob4479_Kill')
RegisterUnitEvent(4479, 4, 'mob4479_Die')
